package com.richapp.launcher.ui.view;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.ImageView;

public class IconView extends ImageView {

	public IconView(Context context) {
		super(context);
		init();
	}

	public IconView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
	}

	public IconView(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}

	private void init() {

	}

	@Override
	protected void onFocusChanged(boolean hasFocus, int direction,
			Rect previouslyFocusedRect) {
		if (hasFocus) {
			bringToFront();
			requestLayout();
			invalidate();
		}
		super.onFocusChanged(hasFocus, direction, previouslyFocusedRect);
	}
	
	
}
